<?php 
	require_once( '../wp-load.php' );
	$response = array();	
	//extract($_POST, EXTR_SKIP);
	$data = array(
	  'call_from'    => $_POST['call_from'],
	  'call_duration'  => $_POST['call_duration'],
	  'call_time'   => $_POST['call_time'],
	  'call_to'   => $_POST['call_to'],
	  'rating' => $_POST['rating']
	);
		
	$wpdb->insert( 'wp_phone_call_tracking', $data );
	$tracking_id = (int) $wpdb->insert_id;
	$response['ID'] = $tracking_id;
	echo json_encode($response);	
?>